package com.homework.controller;

import com.homework.entity.Introduce;
import com.homework.service.IntroduceService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
public class IntroduceController {

    @Resource
    private IntroduceService introduceService;

    @RequestMapping("/findIntroduce")
    public List<Introduce> findAll(){
        return introduceService.findAll();
    }
}
